package stars.enums;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class StarColors {
	
	private HashMap<String, ArrayList<Integer>> colors = new HashMap<String, ArrayList<Integer>>();
	private ArrayList<String> entries = new ArrayList<String>();
	
	public ArrayList<String> getEntries() {
		return this.entries;
	}
	
	public void addColor(String color, ArrayList<Integer> value) {
		colors.put(color, value);
		entries.add(color);
	}
	
	public ArrayList<Integer> getColor(String param) {
		return colors.get(param);
	}
	
	public HashMap<String, ArrayList<Integer>> getAllColors() {
		return this.colors;
	}
	
	public void setParameters(HashMap<String, ArrayList<Integer>> colors) {
		this.colors.clear();
		this.colors.putAll(colors);
		
		for (Map.Entry<String, ArrayList<Integer>> entry : colors.entrySet()) {
			entries.add(entry.getKey());
		}
	}

}
